package com.demo.my.Service;

import com.demo.my.Dao.EmployeeManagementDao;
import com.demo.my.Entity.EmployInfoDTO;
import com.demo.my.Entity.Employee;

import java.util.List;

public class EmployeeManagementService {
    private EmployeeManagementDao employeeManagementDao=new EmployeeManagementDao();
    public List<EmployInfoDTO> getEmployee() throws Exception {
        return employeeManagementDao.getEmployee();
    }

    public void deleteByid(String id) throws Exception {
        employeeManagementDao.deleteByid(id);
    }
}
